<?php
class Wow_Armory_App_SetUp
{
    
    /**
     * Includes the type development.
     * 
     * @var integer
     */
    const DEVELOPMENT = 1;
    
    /**
     * Contains the type live.
     * 
     * @var integer
     */
    const LIVE = 2;
    
    /**
     * Creates the object.
     * 
     * @return void
     */
    public function __construct()
    { }
    
    /**
     * Loads the exception class.
     * 
     * @return Wow_Armory_App_SetUp
     */
    public function loadExceptionClass()
    {
        require_once dirname(__FILE__) . '/../Exception.php';
        return $this;
    }
    
    /**
     * Loads the library.
     * 
     * @param  string $class
     * @param  string $method
     * @return Wow_Armory_App_SetUp
     */
    public function loadLibrary($class = 'Wow_Armory_App_Autoload', $method = 'autoload')
    {
        spl_autoload_register($class . '::' . $method);
        return $this;
    }
    
    /**
     * Loads the enviroment.
     * 
     * @param  string $name
     * @return Wow_Armory_App_SetUp
     */
    public function loadEnvironment($name)
    {
        /*
        if ($name == self::DEVELOPMENT) {
            error_reporting(1);
        } elseif ($name == self::LIVE) {
            error_reporting(null);
        }
        */
        return $this;
    }
    
}